﻿/***************************************************/
/*** file:ConfigInfo.cs                          ***/
/*** date:2010-08-07                             ***/
/*** author:huas                                 ***/
/*** function:config struct of IM                ***/
/***************************************************/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace IM.Net
{
    struct ConfigInfo
    {
        public int m_nListenPort;
        public IPAddress m_nListenAddr;
        public int m_nMaxConnClients;   //最大客户端连接数
        
        public int m_nSocketTimeout;    //socket的超时时间
        public int m_nConnTimeout;      //连接超时
        public int m_nSendTimeout;      //发送超时
        public int m_nRecvTimeout;      //接收超时

        public int m_nTcpBufLen;         //tcp缓冲区(系统)大小
        public int m_nSocketSendBufLen;  //socket发送缓冲区(应用层)大小
        public int m_nSocketRecvBufLen;  //socket接收缓冲区(应用层)大小
        public int m_nMaxClientLen;      //客户端发送的最大包长
        public int m_nWriteStatTime;      //统计间隔
        public int m_nCheckSocketTime;    //多长时间进行超时检测
    }
}
